﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ProyectoBastanteo.Dominio.Cliente>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Cliente
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Cliente</h2>

    <table>
        <tr>
            <th></th>
            <th>Codigo</th>
            <th>Ruc</th>
            <th>Razon Social</th>
            <th>Tipo</th>
            <th>Fecha Inicio</th>
            <th>Nro. Empleados</th>

        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Modificar", "Edit", new {  id=item.codclie })%> 
                <%: Html.ActionLink("Editar", "Details", new {  id=item.codclie })%> 
                <%: Html.ActionLink("Eliminar", "Delete", new { id=item.codclie })%>
            </td>
            <td>
                <%: item.codclie %>
            </td>
            <td>
                <%: item.rucclie %>
            </td>
            <td>
                <%: item.razclie %>
            </td>

            <td>
                <%: item.tipclie.Abreviacion%>
            </td>

            <td>
                <%: String.Format("{0:g}", item.fecini) %>
            </td>
            <td>
                <%: item.nroempl %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Create") %>
    </p>

</asp:Content>

